Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NewWorkspace Wizzard: fix switch workspace after finish #6253

Merged

Conversation

chrisrueger
Copy link
Contributor

@chrisrueger chrisrueger commented Aug 31, 2024

Closes #6252

Now instead of doing an instant restart (which did not switch to the new workspace) we show the existing Eclipse Switch Workspace dialog but have the new workspace location pre-filled. Since this reuses existing Eclipse feature of OpenWorkspaceAction all the switch workspace logic can be reused.

image image

Note, that the screenshot's workspace names do not match since I took them at different times. The first screenshot should have "foo28" as name.

Error on Dev Eclipse instance:

image

Note: It seems the Switch Workspace feature already does not work in a Development instance of Eclipse (when launched from within Eclipse), because I get the following error:

Thus I would need to merge this once to master, test and see if it works with the next snapshot build in a real Eclipse instance.

@pkriens what do you think? It is a slight change from previous UI workflow (showing switch workspace dialog instead of restarting directly), but since the switch did not work, maybe this is an ok compromise?

now instead of doing an instant restart (which did not switch to the new workspace) we show the existing Eclipse Switch Workspace dialog but have the new workspace location pre-filled. Since this reuses existing Eclipse feature of OpenWorkspaceAction all the switch workspace logic can be reused.

Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>
@pkriens
Copy link
Member

pkriens commented Sep 2, 2024

I am ok with this.

@chrisrueger chrisrueger merged commit 564b890 into bndtools:master Sep 2, 2024
9 checks passed
@chrisrueger
Copy link
Contributor Author

@pkriens just want to confirm it is working as (I) expected.
Snapshot: Bndtools 7.1.0.DEV-202409021143-g564b890

The "Select workspace" modal dialog appears with the new workspace name prefilled and when I click "Launch" Eclipse restarts and I am in the fresh new workspace.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New bnd workspace: Switch to new workspace after finish not working
2 participants